package com.neusoft.feign;

import com.neusoft.po.CommonResult;
import org.springframework.stereotype.Component;

@Component
public class FoodFeignClientCallBack implements FoodFeignClient{

	@Override
	public CommonResult listFoodByBusinessId(Integer businessId) {
		// 返回降级响应(食品信息返回null)
		System.out.println("feign触发了熔断降级");
		return new CommonResult(403,"feign触发了熔断降级",null);
	}

}
